package cn.com.jrj.base.util;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.GetMethod;


public class SendMessageUtil {
	public static void send(String sendFile, String msgUrl,String cacheurl){
		HttpClient client = new HttpClient();
		client.getParams().setParameter("http.connection.timeout",
				new Integer(5000));
		client.getParams().setParameter("http.protocol.content-charset", "GBK");

		GetMethod get = new GetMethod(msgUrl + "?flocation=" + sendFile);
		try {
			client.executeMethod(get);
			get.getResponseBodyAsString();
			//System.out.println("分发"+ sendFile+"完成");
		} catch (Exception e) {
			e.printStackTrace();
			//System.out.println("分发"+msgUrl+"失败");
		} finally {
			get.releaseConnection();
		}
	}
}